package com.oujia.cloud.cloudcommon.constant;

public enum VersionEnum {
    VERESION_CH("中文版", "ch"), //中文
    VERESION_EG("英文版", "eg"), //英文
    VERESION_K("k版", "k"); //k版


    private String state;
    private String stateDesc;

    VersionEnum(String state, String stateDesc) {
        this.state = state;
        this.stateDesc = stateDesc;
    }

    public static VersionEnum contains(String state) {
        for (VersionEnum audioVersion : VersionEnum.values()) {
            if (audioVersion.state.equalsIgnoreCase(state)) {
                return audioVersion;
            }
        }
        return null;
    }


    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStateDesc() {
        return stateDesc;
    }

    public void setStateDesc(String stateDesc) {
        this.stateDesc = stateDesc;
    }
}
